/*
 * @Descripttion:
 * @version:
 * @Author: sueRimn
 * @Date: 2020-11-19 15:27:54
 * @LastEditors: sueRimn
 * @LastEditTime: 2020-11-19 15:29:57
 */
import provinceData from "@/assets/js/city-data/province.js";
import cityData from "@/assets/js/city-data/city.js";
import areaData from "@/assets/js/city-data/area.js";

function getCityData() {
    provinceData.forEach((provinceEl, provinceIndex) => {
        cityData[provinceIndex].forEach((cityEl, cityIndex) => {
            cityData[provinceIndex][cityIndex].children =
                areaData[provinceIndex][cityIndex];
        });
        provinceData[provinceIndex].children = cityData[provinceIndex];
    });
    return provinceData;
}

export default getCityData;
